/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.io.Serializable;
/*     */ import java.util.ArrayList;
/*     */ import java.util.List;
/*     */ import net.minecraft.client.model.PositionTextureVertex;
/*     */ import net.minecraft.client.renderer.BufferBuilder;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ql
/*     */   implements Serializable
/*     */ {
/*     */   private static final long d = 1907736523089263403L;
/*     */   public final bax z;
/*     */   public final bax i;
/*     */   private final on[] w;
/*     */   private String q;
/*     */   private static String g;
/*     */   
/*     */   public void v(String str) {
/*  24 */     this.q = str;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public ql(bax bax1, bax bax2, acf acf1, float f, boolean bool, int i, int j) {
/*  35 */     float f1 = bax2.getX();
/*  36 */     float f2 = bax2.getY();
/*  37 */     float f3 = bax2.getZ();
/*     */     
/*  39 */     bax2.set((bax2.getX() == 0.0F) ? 0.008F : bax2.getX(), (bax2.getY() == 0.0F) ? 0.008F : bax2.getY(), (bax2.getZ() == 0.0F) ? 0.008F : bax2.getZ());
/*     */     
/*  41 */     float f4 = bax1.getX();
/*  42 */     float f5 = bax1.getY();
/*  43 */     float f6 = bax1.getZ();
/*     */     
/*  45 */     float f7 = acf1.getX();
/*  46 */     float f8 = acf1.getY();
/*     */     
/*  48 */     List<on> list = new ArrayList(6);
/*     */ 
/*     */     
/*  51 */     this.z = new bax(f4, f5, f6);
/*  52 */     this.i = new bax(f4 + bax2.getX(), f5 + bax2.getY(), f6 + bax2.getZ());
/*     */     
/*  54 */     float f9 = this.i.getX() + f;
/*  55 */     float f10 = this.i.getY() + f;
/*  56 */     float f11 = this.i.getZ() + f;
/*  57 */     f4 -= f;
/*  58 */     f5 -= f;
/*  59 */     f6 -= f;
/*     */ 
/*     */     
/*  62 */     if (bool) {
/*  63 */       float f12 = f9;
/*  64 */       f9 = f4;
/*  65 */       f4 = f12;
/*     */     } 
/*  67 */     if (f1 < 1.0F) {
/*  68 */       f1 = 0.008F;
/*     */     } else {
/*  70 */       f1 = (int)f1;
/*     */     } 
/*  72 */     if (f3 < 1.0F) {
/*  73 */       f3 = 0.008F;
/*     */     } else {
/*  75 */       f3 = (int)f3;
/*     */     } 
/*  77 */     if (f2 < 1.0F) {
/*  78 */       f2 = 0.008F;
/*     */     } else {
/*  80 */       f2 = (int)f2;
/*     */     } 
/*  82 */     PositionTextureVertex positionTextureVertex1 = new PositionTextureVertex(f4, f5, f6, 0.0F, 0.0F);
/*  83 */     PositionTextureVertex positionTextureVertex2 = new PositionTextureVertex(f9, f5, f6, 0.0F, 8.0F);
/*  84 */     PositionTextureVertex positionTextureVertex3 = new PositionTextureVertex(f9, f10, f6, 8.0F, 8.0F);
/*  85 */     PositionTextureVertex positionTextureVertex4 = new PositionTextureVertex(f4, f10, f6, 8.0F, 0.0F);
/*  86 */     PositionTextureVertex positionTextureVertex5 = new PositionTextureVertex(f4, f5, f11, 0.0F, 0.0F);
/*  87 */     PositionTextureVertex positionTextureVertex6 = new PositionTextureVertex(f9, f5, f11, 0.0F, 8.0F);
/*  88 */     PositionTextureVertex positionTextureVertex7 = new PositionTextureVertex(f9, f10, f11, 8.0F, 8.0F);
/*  89 */     PositionTextureVertex positionTextureVertex8 = new PositionTextureVertex(f4, f10, f11, 8.0F, 0.0F);
/*     */ 
/*     */     
/*  92 */     if (f3 != 0.0F && f2 != 0.0F) {
/*  93 */       list.add(new on(null, new PositionTextureVertex[] { positionTextureVertex6, positionTextureVertex2, positionTextureVertex3, positionTextureVertex7 }, f7 + f3 + f1, f8 + f3, f7 + f3 + f1 + f3, f8 + f3 + f2, i, j));
/*     */       
/*  95 */       list.add(new on(null, new PositionTextureVertex[] { positionTextureVertex1, positionTextureVertex5, positionTextureVertex8, positionTextureVertex4 }, f7, f8 + f3, f7 + f3, f8 + f3 + f2, i, j));
/*     */     } 
/*     */ 
/*     */     
/*  99 */     if (f1 != 0.0F && f3 != 0.0F) {
/* 100 */       list.add(new on(null, new PositionTextureVertex[] { positionTextureVertex6, positionTextureVertex5, positionTextureVertex1, positionTextureVertex2 }, f7 + f3, f8, f7 + f3 + f1, f8 + f3, i, j));
/*     */       
/* 102 */       list.add(new on(null, new PositionTextureVertex[] { positionTextureVertex3, positionTextureVertex4, positionTextureVertex8, positionTextureVertex7 }, f7 + f3 + f1, f8 + f3, f7 + f3 + f1 + f1, f8, i, j));
/*     */     } 
/*     */ 
/*     */     
/* 106 */     if (f1 != 0.0F && f2 != 0.0F) {
/* 107 */       list.add(new on(null, new PositionTextureVertex[] { positionTextureVertex2, positionTextureVertex1, positionTextureVertex4, positionTextureVertex3 }, f7 + f3, f8 + f3, f7 + f3 + f1, f8 + f3 + f2, i, j));
/*     */       
/* 109 */       list.add(new on(null, new PositionTextureVertex[] { positionTextureVertex5, positionTextureVertex6, positionTextureVertex7, positionTextureVertex8 }, f7 + f3 + f1 + f3, f8 + f3, f7 + f3 + f1 + f3 + f1, f8 + f3 + f2, i, j));
/*     */     } 
/*     */ 
/*     */     
/* 113 */     if (bool) {
/* 114 */       for (on on1 : list) {
/* 115 */         on1.func_78235_a();
/*     */       }
/*     */     }
/*     */     
/* 119 */     this.w = list.<on>toArray(new on[0]);
/*     */   }
/*     */ 
/*     */   
/*     */   public ql(ld ld1, bax bax1, bax bax2, List<ag> list, float f, boolean bool, int i, int j) {
/* 124 */     float f1 = bax2.getX();
/* 125 */     float f2 = bax2.getY();
/* 126 */     float f3 = bax2.getZ();
/*     */     
/* 128 */     bax2.set((bax2.getX() == 0.0F) ? 0.008F : bax2.getX(), (bax2.getY() == 0.0F) ? 0.008F : bax2.getY(), (bax2.getZ() == 0.0F) ? 0.008F : bax2.getZ());
/* 129 */     float f4 = bax1.getX();
/* 130 */     float f5 = bax1.getY();
/* 131 */     float f6 = bax1.getZ();
/*     */     
/* 133 */     List<on> list1 = new ArrayList(6);
/*     */ 
/*     */     
/* 136 */     this.z = new bax(f4, f5, f6);
/* 137 */     this.i = new bax(f4 + bax2.getX(), f5 + bax2.getY(), f6 + bax2.getZ());
/*     */ 
/*     */     
/* 140 */     float f7 = this.i.getX() + f;
/* 141 */     float f8 = this.i.getY() + f;
/* 142 */     float f9 = this.i.getZ() + f;
/* 143 */     f4 -= f;
/* 144 */     f5 -= f;
/* 145 */     f6 -= f;
/*     */ 
/*     */     
/* 148 */     if (bool) {
/* 149 */       float f10 = f7;
/* 150 */       f7 = f4;
/* 151 */       f4 = f10;
/*     */     } 
/*     */     
/* 154 */     PositionTextureVertex positionTextureVertex1 = new PositionTextureVertex(f4, f5, f6, 0.0F, 0.0F);
/* 155 */     PositionTextureVertex positionTextureVertex2 = new PositionTextureVertex(f7, f5, f6, 0.0F, 8.0F);
/* 156 */     PositionTextureVertex positionTextureVertex3 = new PositionTextureVertex(f7, f8, f6, 8.0F, 8.0F);
/* 157 */     PositionTextureVertex positionTextureVertex4 = new PositionTextureVertex(f4, f8, f6, 8.0F, 0.0F);
/* 158 */     PositionTextureVertex positionTextureVertex5 = new PositionTextureVertex(f4, f5, f9, 0.0F, 0.0F);
/* 159 */     PositionTextureVertex positionTextureVertex6 = new PositionTextureVertex(f7, f5, f9, 0.0F, 8.0F);
/* 160 */     PositionTextureVertex positionTextureVertex7 = new PositionTextureVertex(f7, f8, f9, 8.0F, 8.0F);
/* 161 */     PositionTextureVertex positionTextureVertex8 = new PositionTextureVertex(f4, f8, f9, 8.0F, 0.0F);
/*     */ 
/*     */ 
/*     */     
/* 165 */     if ((((ag)list.get(3)).b()).x != 0.0F && (((ag)list.get(3)).b()).y != 0.0F) {
/*     */       
/* 167 */       list1.add(new on(((ag)list.get(3)).getTexture(), new PositionTextureVertex[] { positionTextureVertex6, positionTextureVertex2, positionTextureVertex3, positionTextureVertex7
/* 168 */             }, (((ag)list.get(3)).a()).x, (((ag)list.get(3)).a()).y, (((ag)list.get(3)).a()).x + (((ag)list.get(3)).b()).x, (((ag)list.get(3)).a()).y + (((ag)list.get(3)).b()).y, i, j));
/* 169 */       if (((ag)list.get(3)).getTexture() != null) {
/* 170 */         ld1.g = true;
/*     */       }
/*     */     } 
/* 173 */     if ((((ag)list.get(1)).b()).x != 0.0F && (((ag)list.get(1)).b()).y != 0.0F) {
/*     */       
/* 175 */       list1.add(new on(((ag)list.get(1)).getTexture(), new PositionTextureVertex[] { positionTextureVertex1, positionTextureVertex5, positionTextureVertex8, positionTextureVertex4
/* 176 */             }, (((ag)list.get(1)).a()).x, (((ag)list.get(1)).a()).y, (((ag)list.get(1)).a()).x + (((ag)list.get(1)).b()).x, (((ag)list.get(1)).a()).y + (((ag)list.get(1)).b()).y, i, j));
/* 177 */       if (((ag)list.get(1)).getTexture() != null) {
/* 178 */         ld1.g = true;
/*     */       }
/*     */     } 
/*     */     
/* 182 */     if ((((ag)list.get(4)).b()).x != 0.0F && (((ag)list.get(4)).b()).y != 0.0F) {
/*     */       
/* 184 */       list1.add(new on(((ag)list.get(4)).getTexture(), new PositionTextureVertex[] { positionTextureVertex6, positionTextureVertex5, positionTextureVertex1, positionTextureVertex2
/* 185 */             }, (((ag)list.get(4)).a()).x, (((ag)list.get(4)).a()).y, (((ag)list.get(4)).a()).x + (((ag)list.get(4)).b()).x, (((ag)list.get(4)).a()).y + (((ag)list.get(4)).b()).y, i, j));
/* 186 */       if (((ag)list.get(4)).getTexture() != null) {
/* 187 */         ld1.g = true;
/*     */       }
/*     */     } 
/* 190 */     if ((((ag)list.get(5)).b()).x != 0.0F && (((ag)list.get(5)).b()).y != 0.0F) {
/*     */       
/* 192 */       list1.add(new on(((ag)list.get(5)).getTexture(), new PositionTextureVertex[] { positionTextureVertex3, positionTextureVertex4, positionTextureVertex8, positionTextureVertex7
/* 193 */             }, (((ag)list.get(5)).a()).x, (((ag)list.get(5)).a()).y, (((ag)list.get(5)).a()).x + (((ag)list.get(5)).b()).x, (((ag)list.get(5)).a()).y + (((ag)list.get(5)).b()).y, i, j));
/* 194 */       if (((ag)list.get(5)).getTexture() != null) {
/* 195 */         ld1.g = true;
/*     */       }
/*     */     } 
/*     */     
/* 199 */     if ((((ag)list.get(0)).b()).x != 0.0F && (((ag)list.get(0)).b()).y != 0.0F) {
/*     */       
/* 201 */       list1.add(new on(((ag)list.get(0)).getTexture(), new PositionTextureVertex[] { positionTextureVertex2, positionTextureVertex1, positionTextureVertex4, positionTextureVertex3
/* 202 */             }, (((ag)list.get(0)).a()).x, (((ag)list.get(0)).a()).y, (((ag)list.get(0)).a()).x + (((ag)list.get(0)).b()).x, (((ag)list.get(0)).a()).y + (((ag)list.get(0)).b()).y, i, j));
/*     */       
/* 204 */       if (((ag)list.get(0)).getTexture() != null) {
/* 205 */         ld1.g = true;
/*     */       }
/*     */     } 
/* 208 */     if ((((ag)list.get(2)).b()).x != 0.0F && (((ag)list.get(2)).b()).y != 0.0F) {
/*     */       
/* 210 */       list1.add(new on(((ag)list.get(2)).getTexture(), new PositionTextureVertex[] { positionTextureVertex5, positionTextureVertex6, positionTextureVertex7, positionTextureVertex8
/* 211 */             }, (((ag)list.get(2)).a()).x, (((ag)list.get(2)).a()).y, (((ag)list.get(2)).a()).x + (((ag)list.get(2)).b()).x, (((ag)list.get(2)).a()).y + (((ag)list.get(2)).b()).y, i, j));
/* 212 */       if (((ag)list.get(2)).getTexture() != null) {
/* 213 */         ld1.g = true;
/*     */       }
/*     */     } 
/*     */     
/* 217 */     if (bool) {
/* 218 */       for (on on1 : list1) {
/* 219 */         on1.func_78235_a();
/*     */       }
/*     */     }
/*     */     
/* 223 */     this.w = list1.<on>toArray(new on[0]);
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(BufferBuilder bufferBuilder, float f) {
/* 229 */     for (on on1 : this.w)
/*     */     {
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */       
/* 239 */       on1.func_178765_a(bufferBuilder, f);
/*     */     }
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ql.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */